A simple trim function. This function replaces input values greater than or equal to the 窶彙窶 parameter by the 窶彗窶 parameter. Input values less than the 窶彙窶 parameter are multiplied by a constant equal to the ratio between the 窶彗窶 and 窶彙窶 parameters. In the special case when 窶彙窶 is zero, the function replaces all input values by the 窶彗窶 parameter.
If the 窶彗窶 and the 窶彙窶 parameters both have the same sign (both positive or both negative), the 窶彗窶 parameter is an upper bound on the output values. In such cases the ratio between 窶彗窶 and 窶彙窶 is positive, and the Trim1 function takes the following form:
Output = Min(Input (a/b), a)
On the other hand if the 窶彗窶 and the 窶彙窶 parameters have opposite signs, the 窶彗窶 parameter is a lower bound on the output values. In such cases the ratio between 窶彗窶 and 窶彙窶 is negative, and the Trim1 function takes the following form:
Output = Max(Input (a/b), a)
In most cases you will probably use the Trim1 function with positive parameter values. In the special case when 窶彗窶 and 窶 b窶 are equal, the Trim1 function takes the following simplified form:
Output = Min(Input, a)
Thus, in such cases the Trim1 function may be replaced by the Min function.